package cn.com.gome.sn.web.controller;

import cn.com.gome.frame.controller.BaseController;
import cn.com.gome.frame.logger.HLogger;
import cn.com.gome.frame.logger.LoggerManager;
import cn.com.gome.sn.dubbo.JkBusFacadeService;
import cn.com.gome.sn.dubbo.JkBusFacadeService;
import cn.com.gome.sn.dubbo.bean.SN_ParametersVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("/main")
public class MainController  extends BaseController {
    protected HLogger logger = LoggerManager.getLoger("MainController");

    @Autowired
    private JkBusFacadeService jkBusFacadeService;


    @RequestMapping("/inits")
    public String inits(){

        return "main/test";
    }

    @RequestMapping("/home")
    public String main(){
        SN_ParametersVo vo = new SN_ParametersVo();
        vo.setBusinessType("ok");
        vo = jkBusFacadeService.service(vo);
        logger.info("------------------"+vo);
        return "main/test";
    }
}
